
/**
 * Add a product in the list of filter by product 
 * 
 * @param gridId
 */
function selectPartners(gridId)
{
	var codes = GridSerializedCheckData(gridId,"&partnersCode[]=");
	if(codes != '')
	{
		hide("sh:Customer_Competitor");
		ReloadFromObject('eInquiry','MC_gCompetitors','?mod=inquiry&act=competitors&reload=grid',null,codes);
	}
}

function selectMaterials(gridId)
{
	var codes = GridSerializedCheckData(gridId,"&codes[]=");
	if(codes != '')
	{
		hide("sh:Material_by_Hierarchy");
		ReloadFromObject('eInquiry','BC_bItems','?mod=inquiry&act=items',null,codes);
	}
}